package com.naizhuai.Model.db.user;

/**
 * @author：lichenxi
 * @date 2018/2/27 19
 * email：525603977@qq.com
 * Fighting
 */
public interface UserDataSourse {

    interface GetUserCallback {

        void onUserLoaded(PersonUserBean user);

        void onDataNotAvailable();
    }

    PersonUserBean getUserSyn(String uid);
    void getUserAsyn(String uid,GetUserCallback callback);

    void getUserByPhone(String phone,GetUserCallback callback);

    void saveUser(PersonUserBean user);

    void updateLoginUser(GetUserCallback callback);


}
